package com.test.mchelepesa.bean_rice.user_info_rice;

import com.test.mchelepesa.util_rice.StringUtil_rice;
import com.google.gson.Gson;

import org.json.JSONObject;

import java.util.ArrayList;
import java.util.LinkedHashMap;

public class LoanApplyDetailInfo_rice {

    private static class Inner {
        private static LoanApplyDetailInfo_rice instance = new LoanApplyDetailInfo_rice();
    }

    private LoanApplyDetailInfo_rice() {}

    public static LoanApplyDetailInfo_rice getInstance() {
        return Inner.instance;
    }

    private String days;
    private String amount;
    private String interest;
    private String interestAndServiceFee;
    private String processingFee;
    private String repayProFee;
    private String interestRate;
    private String realAmount;
    private String repayAmount;
    private String overdueRate;
    private String bankAccount;//尼日、乌干达、肯尼亚
    private String walletMobile;//加纳
    private String fraudRemindNor;
    private String fraudRemindBold;
    private String selectAmountFlag;
    private String currency;
    private ArrayList<LinkedHashMap<String,String>> detailItemList;
    //科特VAT
    private String processingVatFee;
    private String repayProVatFee;

    public static void parse(JSONObject objJson_pretfacile) {
        Inner.instance = new Gson().fromJson(objJson_pretfacile.toString(), LoanApplyDetailInfo_rice.class);
    }

    public String getDays() {
        return StringUtil_rice.getSafeString(days);
    }

    public String getAmount() {
        return StringUtil_rice.getSafeString(amount);
    }

    public String getInterest() {
        return StringUtil_rice.getSafeString(interest);
    }

    public String getInterestAndServiceFee() {
        return StringUtil_rice.getSafeString(interestAndServiceFee);
    }

    public String getProcessingFee() {
        return StringUtil_rice.getSafeString(processingFee);
    }

    public String getRepayProFee() {
        return StringUtil_rice.getSafeString(repayProFee);
    }

    public String getInterestRate() {
        return StringUtil_rice.getSafeString(interestRate);
    }

    public String getRealAmount() {
        return StringUtil_rice.getSafeString(realAmount);
    }

    public String getRepayAmount() {
        return StringUtil_rice.getSafeString(repayAmount);
    }

    public String getOverdueRate() {
        return StringUtil_rice.getSafeString(overdueRate);
    }

    public String getBankAccount() {
        return StringUtil_rice.getSafeString(bankAccount);
    }

    public String getWalletMobile() {
        return StringUtil_rice.getSafeString(walletMobile);
    }

    public String getFraudRemindNor() {
        return StringUtil_rice.getSafeString(fraudRemindNor);
    }

    public String getFraudRemindBold() {
        return StringUtil_rice.getSafeString(fraudRemindBold);
    }

    public String getSelectAmountFlag() {
        return StringUtil_rice.getSafeString(selectAmountFlag);
    }

    public String getProcessingVatFee() {
        return StringUtil_rice.getSafeString(processingVatFee);
    }

    public String getRepayProVatFee() {
        return StringUtil_rice.getSafeString(repayProVatFee);
    }

    public String getCurrency() {
        return StringUtil_rice.getSafeString(currency);
    }

    public ArrayList<LinkedHashMap<String,String>> getDetailItemList() {
        return detailItemList;
    }
}
